package study02;
import java.util.Scanner;

/**
* @author GZQ
* @Date 2023/11/5
 */

//方程计算
public class Equation {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入x的值：");
        int x = input.nextInt();
        int y;
        if (x >= 0 && x <= 5) {
            y = 3 * x + 11;
            System.out.println(y);
        } else {
            y = 11 * x - 7;
            System.out.println(y);
        }
    }
}
